package cn.jc.springframework.beans.factory.config;

import cn.jc.springframework.beans.factory.HierarchicalBeanFactory;

/**
 * @Description:
 * @author: JC
 * @date: 2023/4/5 14:39
 */
public interface ConfigurableBeanFactory extends HierarchicalBeanFactory, SingletonBeanRegistry{
    String SCOPE_SINGLETON = "singleton";

    String SCOPE_PROTOTYPE = "prototype";

    /**
     * 添加后置处理器
     * @param beanPostProcessor
     */
    void addBeanPostProcessor(BeanPostProcessor beanPostProcessor);

    /**
     * 销毁单例对象
     */
    void destroySingletons();
}
